package cn.stylefeng.guns.modular.ws.sso.action;

import cn.stylefeng.guns.sys.modular.rest.entity.RestDept;
import cn.stylefeng.guns.sys.modular.rest.mapper.RestDeptMapper;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;


@SpringBootTest
@RunWith(SpringRunner.class)
public class AddUserService {
    @Resource
    private RestDeptMapper restDeptMapper;

  public static void main(String[] args) {

        new AddUserService().deleteDept(new Long(27));
    }

    public void deleteDept(Long deptId) {
        RestDept dept = restDeptMapper.selectById(deptId);

        System.out.println("部门："+dept.getSimpleName()) ;



    }
}























//RestUserService restUserService = new RestUserService();
//System.out.println(restUserService.getByAccount("fengty").getAccount() );
//BaseMapper bm = restUserService.getBaseMapper() ;
//System.out.println(bm.toString()) ;
//System.out.println( restUserService.getUserInfo(new Long(1)) );